package com.huike.controller;

import com.huike.pojo.Doctor;
import com.huike.pojo.HospInfo;
import com.huike.pojo.Role;
import com.huike.service.InformService;
import com.huike.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("Info")
public class HospInformController {
    @Autowired
    private InformService informService;

//医生信息查询
    @RequestMapping("doctors")
    @ResponseBody
    public ResultVO<Doctor> selectAllDoctor(){
        List<Doctor> doctors = informService.selectAllDoctor();
        return new ResultVO<>(doctors);
    }
}
